package routerGroup

import (
	"coursedesign/projectGo/controller"
	"github.com/gin-gonic/gin"
)

func storeGroup(r *gin.Engine) {
	storeRoutes := r.Group("/store")
	storeController := controller.NewStoreController()
	storeRoutes.GET("", storeController.PageList)      // 展示(查询)仓库
	storeRoutes.POST("", storeController.Create)       // 创建仓库
	storeRoutes.PUT("/:id", storeController.Update)    // 更新数据
	storeRoutes.DELETE("/:id", storeController.Delete) // 删除仓库
}
